package com.ds.service.ceraService;

import com.ds.mapper.UserCeraMapper;
import com.ds.service.userService.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.springframework.transaction.annotation.Transactional;

@Service
@DS("db2")//指定数据库
public class UserCeraServiceImpl implements UserCeraService {

    @Autowired
    private UserCeraMapper userCeraMapper;

    @Override
    public String getUserCera(String uid) {
        return userCeraMapper.getUserCera(uid);
    }

    @Override
    @Transactional
    public Integer updateUserCera(String uid, String cera) {
        return userCeraMapper.updateUserCera(uid,cera);
    }

}
